-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add delegation store to custom staking middleware #303
Conversation
iterate delegation.
iterate delegation storage
Is this PR ready for review? If not, could you please mark it as a draft? It's how I track e'm :) thanks :)! |
absolutely. need to move it to draft. thanks. w |
…-staking override end block custom staking module implementation
…atching add logic to app module to batch delegation.
…eware introduce unbondong/redelegation/cancel unbonding filed to genesis
add logic to EndBlock custom staking wrapper to dequeue all request.
Msg epoch params
custom/staking/module.go
Outdated
println("Validator Address: ", delegation.ValidatorAddress) | ||
fmt.Println("Amount", delegation.Amount.Amount) | ||
|
||
msgDelegate := stakingtypes.MsgDelegate{DelegatorAddress: delegation.DelegatorAddress, ValidatorAddress: delegation.ValidatorAddress, Amount: delegation.Amount} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stakingtypes.MsgDelegate could panic. and it is a problem.
Remove staking middleware storage, keepers, only params and End Block in custom staking extra logic.
add delegation store to custom staking middleware